package com.springboot.base.springbootes.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.base.springbootes.pojo.Hotel;
import com.springboot.base.springbootes.pojo.PageResult;
import com.springboot.base.springbootes.pojo.RequestParams;

import java.io.IOException;
import java.util.List;
import java.util.Map;


public interface HotelService extends IService<Hotel> {

    PageResult search(RequestParams params) throws IOException;

    // 聚合
    Map<String, List<String>> filters(RequestParams params) throws IOException;

    List<String> suggestion(String prefix) throws IOException;
}
